<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	
       <script src="dsbridge.js"> </script>
	</head>
	<body style="background-color:#999999;">


     <h1 id="setText" style="font-size:32px; margin-top:30px; margin-left:30px;"></h1>
		
	<script>
		
		function getQueryVariable(variable)
		{
		       var query = window.location.search.substring(1);
		       var vars = query.split("&");
		       for (var i=0;i<vars.length;i++) {
		               var pair = vars[i].split("=");
		               if(pair[0] == variable){return pair[1];}
		       }
		       return(false);
		}
		
		document.getElementById("setText").innerHTML=getQueryVariable("id");
		
		window.onload =function()
		{
				   
		             //监听 uniapp 传过来的清息
		            bridge.call("addEventListener",{},function(v){
		
		             document.getElementById("setText").innerHTML="我的内容="+v;
					 
                    
					  bridge.call("sndMsgToNative",{"code":v});
		
		            });
		}


					 
					  //在需要时，回传消息给uniapp 层
					  //
	</script>	
	</body>
</html>
